package gl.android.biyiqing;

import gl.android.biyiqing.fragment.BaseFragment;
import gl.android.biyiqing.fragment.GiftFragment;
import gl.android.biyiqing.fragment.MineFragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;

public class GiftActivity extends BYQBaseFragemtActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_container_fragment);
		addFragmentToContainer(savedInstanceState,
				BaseFragment.creatBaseFramgent(getIntent().getExtras(),
						GiftFragment.class));
	}

	protected void addFragmentToContainer(Bundle savedInstanceState,
			Fragment mBaseFragment) {
		if (savedInstanceState == null) {
			getSupportFragmentManager().beginTransaction()
					.add(R.id.container, mBaseFragment).commit();
		}
	}
}
